package com.sen.gulimall.search.feign;

import com.sen.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Kisen
 * @email liuqs@jaid.cn
 * @date 2022/9/12 15:37
 * @detail
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    @GetMapping("product/attr/info/{attrId}")
    R attrInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("product/brand/infos")
    R brandInfos(@RequestParam("brandIds") List<Long> brandIds);

    @GetMapping("product/category/info/{catId}")
    R categoryInfo(@PathVariable("catId") Long catId);

}
